home *** CD-ROM | disk | FTP | other *** search
/ Freelog 9 / Freelog009.iso / BAS / Internet / Rtf2Html / Source C / LIB / LIB.H < prev    next >
C/C++ Source or Header  |  1999-06-27  |  2KB  |  102 lines

  1.  
  2. /*
  3.  * %%File: lib.h
  4.  *
  5.  * Copyright (c) Bertrand LE QUELLEC 1995-1999
  6.  *
  7.  * http://perso.wanadoo.fr/blq
  8.  * blq@wanadoo.fr
  9.  */
  10.  
  11.     
  12. /* ------------------------------------------------------------------------- */
  13.  
  14.  
  15. #ifndef bool
  16.  
  17. #ifdef BOOL
  18. #define bool BOOL
  19. #define Bool BOOL
  20. #else
  21. typedef char bool;
  22. typedef char Bool;
  23. #endif  /* BOOL */
  24.  
  25. #endif  /* bool */
  26.          
  27.          
  28. #ifdef TRUE
  29. #define fTrue   TRUE
  30. #define True    TRUE
  31. #else
  32. #define TRUE    1
  33. #define fTrue   1
  34. #define True    1
  35. #endif /* TRUE */
  36.  
  37. #ifdef FALSE 
  38. #define fFalse  FALSE
  39. #define False   FALSE
  40. #else       
  41. #define FALSE   0
  42. #define fFalse  0
  43. #define False   0
  44. #endif /* FALSE */
  45.  
  46.  
  47. #ifndef false 
  48. #define false   fFalse
  49. #endif
  50.  
  51. #ifndef true
  52. #define true    fTrue
  53. #endif
  54.  
  55.  
  56. #define MLEN        256
  57. #define TLEN        15
  58.  
  59.  
  60. /* ------------------------------------------------------------------------- */
  61.  
  62.  
  63. #ifdef SOURCE_LIB
  64. #define EXTERN_LIB
  65. #else
  66. #define EXTERN_LIB  extern
  67. #endif
  68.  
  69.  
  70. #define VITE_IMG    30
  71. #define ONE_FRAME   50
  72. #define CR          '\n' 
  73.  
  74. #define UPPERCASE   10
  75. #define LOWERCASE   20
  76.                                           
  77.                                           
  78. EXTERN_LIB Bool libPairImpair       (int);                                          
  79. EXTERN_LIB void libReverse          (char []);
  80. EXTERN_LIB int  libBitCount         (unsigned);
  81.                                           
  82. EXTERN_LIB char * libQuote          (char *);
  83. EXTERN_LIB char * libDelQuote       (char *);
  84. EXTERN_LIB char * libChangeChar     (char *, char, char);
  85. EXTERN_LIB char * libRTrim          (char *);
  86. EXTERN_LIB char * libLTrim          (char *);
  87. EXTERN_LIB char * libCaseString     (char *, int);
  88.  
  89. EXTERN_LIB void libPrintCharStd     (int, FILE *);
  90. EXTERN_LIB void libPrintString      (char *, FILE *);
  91. EXTERN_LIB void libPrintInt         (int, FILE *);
  92. EXTERN_LIB void libPrintLong        (long, FILE *);
  93. EXTERN_LIB void libPrintStringInt   (char *, int, FILE *);
  94. EXTERN_LIB int  libPosChar          (char *, char, bool);
  95.  
  96. EXTERN_LIB char * libGetStrToChar   (FILE *, int);
  97. EXTERN_LIB char * libGetStrToCR     (FILE *);
  98. EXTERN_LIB void libNextLine         (FILE *);
  99. EXTERN_LIB void libGotoChar         (FILE *, int);
  100. EXTERN_LIB bool libTypeOldChar      (int);
  101.  
  102.